<template>
  <hr />
  <br />学生
  <div>name:{{ name }}</div>
  <div>classname:{{ classname }}</div>
</template>

<script>
import { ref, toRefs, inject } from 'vue';
export default {
  emits: ["updatedcount"],
  setup(props, ctx) {
    const student = inject('student'); // 导入 student (子组件导入)
    return {
      ...student
    }
  }
}
</script>
